var i18n = function () {
	function i(b) {
		b = b.querySelectorAll(l);
		for (var d, f = 0; d = b[f]; f++)
			for (var e = 0; e < h.length; e++) {
				var c = h[e],
				a = d.getAttribute(c);
				a != null && j[c](d, a)
			}
	}
	var j = {
		"i18n-content" : function (b, d) {
			b.textContent = chrome.i18n.getMessage(d)
		},
		"i18n-values" : function (b, d) {
			for (var f = d.replace(/\s/g, "").split(/;/), e = 0; e < f.length; e++) {
				var c = f[e].match(/^([^:]+):(.+)$/);
				if (c) {
					var a = c[1];
					c = chrome.i18n.getMessage(c[2]);
					if (a.charAt(0) == ".") {
						a = a.slice(1).split(".");
						for (var g = b; g && a.length > 1; )
							g = g[a.shift()];
						if (g) {
							g[a] = c;
							a == "innerHTML" && i(b)
						}
					} else
						b.setAttribute(a, c)
				}
			}
		}
	},
	h = [],
	k;
	for (k in j)
		h.push(k);
	var l = "[" + h.join("],[") + "]";
	return {
		process : i
	}
}
();
i18n.process(document)